﻿using System;
using System.Collections.Generic;

namespace BSPortal.Usercontrol
{
    public partial class TopSell : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        private void LoadData()
        {
            var listTopSell = Common.GetCurrentLineTopSellProducts().FindAll(row => (bool)row.IsPublished == true);

            topSellRepeater.DataSource = listTopSell;
            topSellRepeater.DataBind();
        }
    }
}